//
// Created by Administrator on 2023-03-21.
//

#ifndef OPENGL_TEXTURE_H
#define OPENGL_TEXTURE_H

#include <GLES3/gl3.h>
#include "GLUtil.h"
#include <android/asset_manager_jni.h>
#include <android/asset_manager.h>
class Texture {
public:
    GLuint mProgram;
    GLUtil glUtil;
    GLuint mVertexShader;
    GLuint mFragmentShader;
    GLuint m_texID;
    GLuint textureLocation;
    int width, height,nrChannels;
    Texture();
    ~Texture();
    void Init(AAssetManager*  pManager,const char* vShaderFileName,const char* fShaderFileName);
    void InitTexture(const char* textureFileName);
    void Draw();
};

#endif //OPENGL_TEXTURE_H
